﻿package com.gengine.resource.encryption
{
    import flash.utils.*;

    public class EncryptionInfo extends Object
    {
        public var encryptType:String;
        public var contentType:String;
        public var contentBytes:ByteArray;
        public var otherBytes:ByteArray;
        private var _extensionName:String;

        public function EncryptionInfo(param1:String, param2:ByteArray, param3:String, param4:ByteArray = null)
        {
            this.encryptType = param1;
            this.contentBytes = param2;
            this.otherBytes = param4;
            this.contentType = param3;
            this._extensionName = this.encryptType != null ? (this.encryptType) : (this.contentType);
            this._extensionName = this._extensionName.toLowerCase();
            return;
        }// end function

        public function get extensionName() : String
        {
            return this._extensionName;
        }// end function

        public function get fileExtention() : String
        {
            var _loc_1:* = EncryptUtils.extensionName;
            return _loc_1;
        }// end function

    }
}
